package com.example.bicycle.domain.entity;

import java.time.LocalDateTime;
import java.util.Date;

import java.io.Serializable;

import com.example.bicycle.domain.enums.UserTypeEnum;
import com.example.bicycle.handler.mybatis.UserTypeEnumTypeHandler;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
/**
 * (User)表实体类
 *
 * @author makejava
 * @since 2023-08-02 21:29:49
 */
@SuppressWarnings("serial")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("users")
public class User  {
    @TableId
    private Integer userId;

    private String username;
    
    private String password;
    
    private Date createdAt;
    
    @TableField(typeHandler = UserTypeEnumTypeHandler.class)
    private UserTypeEnum userType;



}

